You would need to have a server to hold a list of all of the opened gameservers and every time a gameserver is opened, the program would have to send it's information to the central server.

This information could include IP Address, Game Server Name, number of players, and ping