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:
[0][4][8][12]
[1][5][9][13]
[2][6][10][14]
[X][X][X][15]

Save the original O coordinates or compute the matrix inverse.