Check if keyboard connected?

Is there a way to check if there is a physical keyboard connected? (needs to be cross platform so hoping SDL has something.) I have a game that can run on a Windows tablet without a keyboard but it needs to know whether to display onscreen controls or not. Only thing missing is being able to detect if a keyboard is attached to the system. It does work if the user ticks an option in settings but it’d be nice to be able to force that checkbox on if there is no other way to get input (no keyboard or joystick.) Thanks.

Actually looked for a solution for win32 but doesn’t seem like there is much. Using raw input, it thinks the tablet does have a keyboard (because of the software keyboard presumably.) Checked in WMI Explorer and seemingly there is no info on if the device is actually connected (on my laptop it lists 6 keyboards including a PS/2 device.)