win32api.GetComputerNameEx

string = GetComputerNameEx(NameType)

Retrieves a NetBIOS or DNS name associated with the local computer

Parameters

NameType : int

Value from COMPUTER_NAME_FORMAT enum, win32con.ComputerName*

Win32 API References

Search for GetComputerNameEx at msdn, google or google groups.