win32api.GetComputerName

string = GetComputerName()

Returns the local computer name

Win32 API References

Search for GetComputerName at msdn, google or google groups.