When can babies tell who their parents are?

Just Wondering.. Because my daughter cries with everyone else besides her dad and i.. It amaze me...