I need some assistance understanding the COG of an assembly.

I need some assistance understanding the COG of an assembly. The problem I have is, if I create two identical size cubes but each with a different point of origin the Measure Inertia tool gives a different COG measurement for each cube.

The COG symbol is in the same position on both cubes as expected but the Gx,Gy and Gz is different for each cube.

If I have an assembly with various components and sub-assemblies, how do I determine where the COG measurements are given from.

Does the point of origin of all components influence the COG measurement of an assemble or is it calculated on the first component in the structure tree?