Viewing available agents on a workgroup

Is there a path or file name on the chat server that I can access with a program that will tell me whether there are any agents in a particular workgroup available for chatting? Ideally, I’d like to be able to hit a particular URL (passing the workgroup as a parameter?) and get back a simple response (text, XML, etc) that would tell a program if there were any agents available in that workgroup.