Detecting the preferred keyboard layout of the user. (QWERTY, AZERTY, QZERTY...)

To allow full gamecontroller support, we have implemented our own in-game keyboard.

I’m currently trying to detect the preferred keyboard layout for the player. (QWERTY, AZERTY, QZERTY…)

Would love to hear your ideas what the most solid approach/implementation would be?