How would I go about checking a page for form objects and returning all of the object ID's?

I don't even know how to return page source..so go easy on me please.

Any help is greatly appreciated.