You shoud try pouring a bucket of water on the sunroof to see if the water can get into the inside first to make sure it's really coming from there. It could be from your door, in that case you just need to replace the rubber door seals.