Four people have been taken to hospital after a house fire in the New South Wales Blue Mountains region.