“The Senators and Representatives before mentioned, and the members of the several state legislatures, and all executive and judicial officers, both of the United States and of the several states, shall be bound by oath or affirmation, to support this Constitution; but no religious test shall ever be required as a qualification to any office or public trust under the United States.”
— U.S. Constitution, Article VI
I would think that would make such a line of questioning off limits. It’s not the government’s place to judge religious practices.
“...but no religious test shall ever be required as a qualification to any office or public trust under the United States.
I would suggest that, in the penumbra of that phrase, exist a ban on an abortion test.