There are many ways to know the OS language of the PC where your app is running.
I accidentaly found out a shortcut: just use the buiilt-in weekdayname function.
If it returns "lunes" the PC is spanish, if it's "monday" it's english..."lunedi" italian.
This is good in case you just need to know the language and you don't care about the keyboard setting of course.