Kinematics and screw mapping can do some of that, but on smaller machines stiffness becomes a major factor as well, and it leads to dynamic errors that are much harder to compensate for.
It's probably easier to just get the machine square in a lot of cases than measuring precisely how far out of square it is..