After the starter is done, cold crash, then decant the starter beer into a well sanitized quart-size takeout container, put a lid on it (or foil) and let sit at room temps for a few days. If a pellicle appears or it tastes sour or bad, it's likely infected.
I always taste some of the starter beer right after decanting for early signs of infection.