Apple Script which return: input method

I need a button / widget that will display the current input language, and on pressing change it.

I have no problems with change - just setup hotkey shortcut cdm + space;

The difficulty is to know what language is now set and display it;

Thx. Georgiy.