This question has already been answered:

I would like to find the python 3 library, in order to find out information about the motherboard - name, number, etc.

Reported as a duplicate by members aleksandr barakin , Alex , Denis Bubnov , Denis , user194374 9 Dec '16 at 8:31 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • what prevents to do it ? - slippyk

2 answers 2

WMI

>>> import wmi >>> a = wmi.WMI() >>> a.Win32_BaseBoard()[0].SerialNumber 
  • As I understand it, this is only for Windows and then from certain versions? - lospejos
  • Yes. For other platforms, there are also such libraries. By looking for google. - natus vincer

For Linux, there is a dmidecode utility (required as root), there is its ported version for Windows. Call through subprocess.

There are also OS specific calls for certain systems. Read more in this thread.