win32api.GetConsoleTitle

string = GetConsoleTitle()

Returns the title for the current console.