Well, since we are using system HID drivers, we don't detect the detachment by ourselves.
On the other hand, when a USB device is detached, Windows produces the detachment sound. This sound usually comes immediately after detachment, but in our case, it takes up to about 10 seconds for this to happen.
Also, this is directly visible when the device is rebooting to bootloader mode - the device reboots, re-initializes the USB stack and waits for master to enumerate the device. It takes 10 seconds for the master to start communicating...