War machine models do not normally have bases, and so the usual convention of measuring to the model's base cannot be used. When measuring to and from the war machine, measure to or from the body of the machine, by which we mean the closest part of the chassis, wheels or the weapon itself (ignore any spikes, piles of cannonballs, sprockets, banners and so on).
There is one notable exception. When firing a war machine's weapon, ranges are measured from the muzzle of the gun (in the case of a cannon, volley gun or similar) or the crossbar (in the case of a stone thrower or similar catapult). If your war machine is particularly unusual and does not have any of these features, you should choose a suitable point from which you will measure all your shooting attacks, so long as you are consistent.