Input language

I am looking for a way to get the selected language of the enabled keyboard. Or atleast the family of the alphabet they are using. It can be different to locale and to system language. The globalization plugin only allows me to get the locale and preferred language. Do you guys know of a way to achieve this?