You'd need to use Steam's query protocol. You should be able to find a few references on that fairly easily.