Is there a way to get a slots parent and/or ancestors?

Here is what I’m trying to accomplish:

Let’s take for example that I have a content item paired with a simple template that displays a text field ( like a callout ) in a List slot of some other item. That other item is in the Left slot of some further ancestor item with the same template( the templates do not have to be the same, this is just to simplify the question).


[item1|snCallout] List Slot <- [item2|snCallout] Left Slot <- … and so on to the final page template containing the last slot in the hierarchy.

The questions is, can you traverse using velocity code to find ( much like you do visually in the impact anaylsis ) a slots parent and/or ancestors slots all the way up to the page template level? And if so, how?