If you have bridge with vlan-filtering, then something like
/interface/bridge/host/print where vid=<vlan id>
where <vlan id> is VLAN ID you want to query.
Another possibility (not sure if it's available on all ROS devices):
/interface/ethernet/switch/host/print where vlan-id=<vlan id>