Yeniaul Adrianad
Yeniaul Adrianad

Reputation: 21

Get device make/model from disc drive, hard drive, etc

In Python 2, I'm looking to get the make/model of a device, such as an Ethernet card, hard drive, CD/DVD/BD drive, etc. I have no idea where to start, and the closest thing a Google search can come up with is detecting when a disc is inserted into a drive or getting the name of a USB device.

For example, I'd look to retrieve a name such as ST1500DM003-9YN16G (this is a HDD) or VirtualBox Host-Only Ethernet Adapter (this is an Ethernet adapter) from the system. Requiring admin privileges isn't an issue, as the program that this'll be used in requires admin privs for other operations anyway.

Upvotes: 1

Views: 193

Answers (0)

Related Questions