Query Database for current information

I would like to be able to query the underlying sql database for parameters. I'd like to know how to retrieve a list of all access points that are online, along with their current frequency, bandwidth, color code, and ip address.

Can anyone provide a query that I can use to pull this information? If not, what tables can I look in to find this information?
Thanks in advance,

Kevin