"From" is a preposition. It doesn't seem like it because we expect prepositions to be followed by some phrase. The grammatically correct version of your sentence would be "From where are you coming?"...
It is generally an adverb when located at the beginning of a sentence. You should find that it modifies the verb that follows it, as to where. However, it could be a pronoun if it represents a thing...