It is part of the eeprom, so reading it with M205 and setting with M206 should do the trick. You just need to find out which id is which language. Depends on compilation settings of supported languages, so not a fixed list for all. But stays as long as all use same language selection.