How to access the result of hardware occlusion queries

I want to access the result of the “Hardware Occlusion Queries”, is there any API?