How do you measure a distance along the Z axis in Altium?
Press '3' to enter 3D view mode.
Tools->3D Body Placement->Measure

You are then prompted to select your points (message appears at the bottom of the screen in the bar with x/y coordinates).

You can measure points on the same object or between two different objects.