I think your best bet is to use the system.tag.query function (see the tag report tool), make sure to configure it to "Alarm(s) configured" (again you can use the tag report tool and copy the script and just paste it where needed).
From there, when doing it like so, you can loop through the results and use something like below:
# here the query argument for the function below
# is the dictionary given by the tag report tool
results = system.tag.query(provider, query)
for tag in results:
for alarm in tag["alarms"]:
#here do whatever you want with your alarm
Doing so, you can then append your alarm to a list, then return the list and pass it to a Table component.
