If you have a USB 3.0 input, you can easily check if it's connected to a USB 3.0 port by checking if the USB 3.0 ground ("GND DRAIN") is in fact connected to ground. (Bypass it with a 100n cap as close to the connector as possible to preserve the shielding aspect if you're going to use the USB 3.0 data.)