Some of the keyboard status information can be changed using KbdSetStatus.
In KBDINFO, the upper byte of fsInterim is the NLS shift state. The meaning of the NLS shift varies by language. The following bits are defined to access this data:
NLSS_NLS1