win32console.GetConsoleTitle

PyUNICODE = GetConsoleTitle()

Returns the title of the console window