About usb rubber ducky

how can we find out if a cool disk is a usb rubber ducky and i see methods on net that u can convert a normal cool disk to usb rubber ducky and i want to know how can we identify these cool disks and not infected (if we have a linux distro like debian)?