def get_usb_devices():
    """
    Get USB devices
    @return: list of tuples (dev_idVendor, dev_idProduct, dev_name)
    """
return [(device.idVendor, device.idProduct, _get_dev_string_info(device)) for
    device in usb.core.find(find_all=True) if device.idProduct > 2]
Обнаружение USB-накопителя Python