NB! It seems this console command is not compatible with CS2.
Command Profile

SV_SHOWTAGS

CS:GO

This command prints to console the current server's public and private gametags.

Syntax
sv_showtags

Description

This command prints to console the current server's public and private gametags.

Syntax And Arguments

sv_showtags