This command helps, but only to be used in the battle.
!showteam
Only the player can extract their team using this command. Use !showteam if you wanna see the whole set, or for a specific Pokemon or by order, do this command:
!showset (order of the Pokemon / or name)
For example, if Pikachu is the first Pokemon of your team, use !showset 1 or !showset Pikachu. This command requires the user to be of rank ☆ or player. Therefore, you need to ask the players from each side to execute the command for extracting the team.
Note that this works only in a battle, there's no other way. Use the Smogon usage statistics to guess the set, that's only option aside from this.
Hope this helps!