Nonlocally sensing the magnetic states of nanoscale antiferromagnets with an atomic spin sensor