They know simply by where the catcher sets up if his team is on D.