You would need a plan, building permit, inspections. Structural engineer to determine if the foundation is sufficient to carry the weight. A contractor to do the work. Electrician if you want electric service. Not really a DIY job.
First check to see what type of dormer you want: