retrieve absolute coordinate after transformation?

Let say O is the origin of the topmost coordinate. After a bunch of matrix transformations, O will be somewhere else. How can I retrieve O’s coordinate relative to the original coordinate without having to track every transformations that have been done? Anyone has an idea of which function to look at? Thanks.

if you have a matrix, read out those values with an X:

Save the original O coordinates or compute the matrix inverse.