I don't know that there is a way to query the list of custom HSM rules in the HSM api.
This thread describes the API
you should look when a custom rule runs if events are driven, and if the description gives you more details
You can see in the HE console HSM events in
HE console -> logs -> Location events (at the top of screen)