I have read Is there a way to list all the available Windows' drives? and Cross platform way to list disk drives on Linux, Windows and Mac using Python? and methods like:
import win32api
print(win32api.GetLogicalDriveStrings().split('\000'))
but how to limit this list to external USB storage devices only? (USB HDD, USB SSD, USB flash drive, etc.)
PS: is it possible with very few dependencies? (maybe just ctypes
or win32api
)