Net_GameServerQuery provides an common API to query game servers.
The full online documentation is available here