You can execute this command in the shell from python: dmidecode | egrep -i “serial|product” You can do it with subprocess.check_output() (reference: https://docs.python.org/2/library/subprocess.html) That will give you the product name and below the serial numbers specified for it. For it to work in windows you should use dmidecode for windows.
Обсуждают сегодня