This is a really strange sentence in English. If we were inquiring about an author's methods, we would say "how do you go about writing your books?" or "how did you write your book?" and then follow it up with a more specific question. If we wanted to know whether a writer used a pencil or a typewriter or computer, we would say "what do you write with?"