I've seen recommendations to set them up with various sizes like this:
That way they are all 10 mil vias but you can tell on a via report which is which.
This is not what I mean,
I want thru automation a list of via spans like in the design status report
Take a look at Document.LayerRanges.
In AATK there are a couple of examples like the replace vias script.