win32api.GetUserName

string = GetUserName()

Returns the current user name

Win32 API References

Search for GetUserName at msdn, google or google groups.