Retrieves BIOS information for a computer, including BIOS version number and release date.

This script was tested using Python 2.2.2-224 for Microsoft Windows, available from ActiveState.

import win32com.client
strComputer = "."
objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
colItems = objSWbemServices.ExecQuery("Select * from Win32_BIOS")
for objItem in colItems:
    z = objItem.BiosCharacteristics
    if z is None:
        a = 1
        for x in z:
            print "Bios Characteristics: ", x
    z = objItem.BIOSVersion
    if z is None:
        a = 1
        for x in z:
            print "BIOS Version: ", x
    print "BIOS Version: ", objItem.BIOSVersion
    print "Build Number: ", objItem.BuildNumber
    print "Caption: ", objItem.Caption
    print "Code Set: ", objItem.CodeSet
    print "Current Language: ", objItem.CurrentLanguage
    print "Description: ", objItem.Description
    print "Identification Code: ", objItem.IdentificationCode
    print "Installable Languages: ", objItem.InstallableLanguages
    print "Install Date: ", objItem.InstallDate
    print "Language Edition: ", objItem.LanguageEdition
    z = objItem.ListOfLanguages
    if z is None:
        a = 1
        for x in z:
            print "List Of Languages: ", x
    print "List Of Languages: ", objItem.ListOfLanguages
    print "Manufacturer: ", objItem.Manufacturer
    print "Name: ", objItem.Name
    print "Other Target OS: ", objItem.OtherTargetOS
    print "Primary BIOS: ", objItem.PrimaryBIOS
    print "Release Date: ", objItem.ReleaseDate
    print "Serial Number: ", objItem.SerialNumber
    print "SMBIOS BIOS Version: ", objItem.SMBIOSBIOSVersion
    print "SMBIOS Major Version: ", objItem.SMBIOSMajorVersion
    print "SMBIOS Minor Version: ", objItem.SMBIOSMinorVersion
    print "SMBIOS Present: ", objItem.SMBIOSPresent
    print "Software Element ID: ", objItem.SoftwareElementID
    print "Software Element State: ", objItem.SoftwareElementState
    print "Status: ", objItem.Status
    print "Target Operating System: ", objItem.TargetOperatingSystem
    print "Version: ", objItem.Version