win32api.GetComputerObjectName
string = GetComputerObjectName(NameFormat)
Retrieves the local computer's name in a specified format.
Parameters
NameFormat : int
EXTENDED_NAME_FORMAT value, win32con.Name*Win32 API References
Search for GetComputerObjectName at msdn, google or google groups.