RegisterDeviceNotification can be used to register for device arrival and removal notifications.
The device class ID's that can be used with it are spread out all over the Windows Driver Kit (WDK).
It took me a while to gather a list of them, so I wanted to extract them and make them findable