Get a list of all exposed devices (through REST or websocket)

Is there any way to get a list of all exposed entities (to voice assistant) ?

I found this but it’s dirty:

registry = json.load(open(".storage/core.entity_registry"))
for entity in registry["data"]["entities"]:
    if entity['entity_id'] in entities:
        if entity['options']['conversation']['should_expose']:
            print(entity['entity_id'])