_CODEPAGE returns the input code page used by the TCC console.

 

See also CHCP.