Is it: 上記はどこからか知っていますか?
I agree with nate.
「上記テクストはどこからですか?」Where is the above (mentioned) text from?
Or if you want to know the source of the text, I may say,
「上の本文は、どこからの出典ですか?」or 「上の本文はどこの出典ですか?」or「上の本文の出典はどこですか?」出典(しゅっ・てん)= source/reference
It looks like you're new here. If you want to get involved, click one of these buttons!