The only way they know is if you go to a doctor and check some box in your medical history form that you fill out.
FEMA has a database. A few months into Covid, I talked with a friend who’s husband works for FEMA and he was busy tracking down and compiling names of the vaccinated.