win32console.GetConsoleCP

int = GetConsoleCP()

Returns the input code page for calling process's console