Use GetKeyboardLayoutName to get the keyboard type.