Magnetic order in 2D antiferromagnets disclosed by spontaneous anisotropic magnetostriction