A behavioural difference: generally, only the female incubates the eggs (males have been known to do a spell, but only rarely). So if you see one incubating, it is likely a female, if you see one carrying food to a sitting bird, that's the male. But both parents feed the chicks, so once they've hatched the eggs, no way of telling.