No. Sound has to be converted from analog to digital for use by a computer, not the other way around. It is converted to analog so amplifiers and other analog equipment can use it and so you can hear it.
So- you are asking when to use 'when' in a sentence. When you are asking how to use when in a question, you are already using when in a sentence, because a question actually is a sentence. I like to use when in a sentence whenever I like.