Most of the posts above assume you have enabled ADB on the device. Even if you have not enabled ADB, you run the command
adb devices
It will typically return a line with: "<serial_number> unauthorized"