This is a relatively common task, and you can do this with javascript or jQuery. You'll find one approach outlined
here.
As for doing it in a text html module, you can use an html module to place a div in the appropriate place, and use the javascript/jquery to place the value of the querystring variable in the div.
Since you mentioned the word "reports" I'll just mention that the DotNetNuke Reports Module is able to use querystring parameters in creating reports. There are other modules that also make use of querystring parameters.