I do not know if that's possible...but why 10 keyboards/10 mice? Peculiar! By the sound of it there may be a possible solution to your problem, you need to register a windows global event 'RegisterDeviceNotification' to intercept the plugging and removing of a USB device. The pinvoke signature is here.
See here on CodeProject for an article on 'HIDache', here is another two more links about using the pinvoke to do the job. First link is about USB HID, the other link is about detecting USB drive removable events.
I would imagine that upon plugging in, after the event is received that you can deny the system to use it...
Hope this helps,
Best regards,
Tom.