First find the insertion point of the Redbox instance in its current context.
Next find the transformation of the Bigbox container instance.
You need to get a handle on the 'Redbox'.
Let's assume there is only one instance and that's inside Bigbox.
redbox = model.definitions['Redbox'].instances[0]
Now get its insertion point
pt = redbox.transformation.origin
Now let's assume there's only one instance of 'Bigbox'.
bigbox = model.definitions['Bigbox'].instances[0]
Get its transformation
tr = bigbox.transformation
Apply that to the point 'pt'
pt.transform!(tr)
The point 'pt' is now relative to the model's origin, NOT the Bigbox's internal origin...