I\'m writing a python module for a device that interacts with a user supplied USB memory stick. The user can insert a USB memory stick in the device USB slot, and the device
I think the easiest way is to use lsblk:
lsblk -d -o NAME,TRAN | grep usb