I found out that Virtual Pins are actually vias which are converted to pins. I can find them through automation Pins object query where their name is VP<number> e.g. "VP23"
But how i can access the via properties of the virtual pin through automation? At minimum, i would like to get the type property. But it would be nice to get the whole IPowerPCBVia
(Pads Standard Plus Layout VX2.5, scripting from C#)