To test I went in and deleted all these token keys from my registry. Windows did not mind, creating new keys for each device the first time I manually selected it as an input.
I found a method that enumerates all active input devices. If this works reliably, and if it uses a naming system that matches the tokens, I might be able to use this to filter out unused devices.