win32api.GetKeyboardLayoutList

(int,..) = GetKeyboardLayoutList()

Returns a sequence of all locale ids currently loaded