CS:GO server IP addresses can be obtained in game, as well as the port number by enabling the developer console and typing 'status' while in game, which will give you the server information.
As for the other games, one easy way to do it is through Resource Monitor in Windows and seeing the IPs a particular process is connected to.