I feel this is a bit too, err, hostile. I'd suggest more along the lines of "I'm hesitant to answer as this looks like a homework question. Perhaps you could provide more motivation for your question, or explain the background?"
Asking someone to "identify themselves" seems to have the wrong tone.
]]>