How do I find out what my substrate is / and then how do I determine the best method to attach my brackets?

Engineered metal buildings have steel purlins. Post-frame buildings generally have wood purlins. Residential and light commercial wood frame construction generally has wood deck.