Ты кому пишешь письмо?
Who are you writing to?
We don't have to say letter in this context - and usually don't.
Who are you writing the letter to?