Antibodies are immune system elements specific to a particular infecting agent. Some antibodies will confer immunity to that agent (virus). If we can accurately measure the right antibodies, we can tell who has had a particular infection and is (most likely) immune to getting it again.