Uset
GetLogicalDriveStrings()[
^] to read all the available logical drives. Check for each drive type using
GetDriveType()[
^].
The drive having DRIVE_REMOVABLE as drive type and BusTypeSd as Bus type is either a pen drive or SD card.
You can check drive bus type using
DeviceIoControl()[
^] function.
Let me know if you anything else.