In english there are two ways to refer to a person of unknown gender. "it" and "they". Of a baby you could say:
"Is it a boy or a girl?" or "Are they are a boy or a girl?"
Both are perfectly correct and common, but "it" sounds impersonal and as such can be a bit rude.