Two people have died while five others - including four children - have been taken to hospital after a house fire in north-west Sydney.