Morse theory is an example of such method. The classification of compact surfaces using Morse theory is done for example in the book of Hirsch, differential topologyDifferential topology. The book of Milnor, theLectures on the h-cobordism theorem goes a step further by proving the Poincare conjecture in dimension bigger than five using Morse theory.
It should be emphasized however that "to look"look at F(M)$F(M)$, the set of functions on this space"$M$" is just one way to understand a space $M$ amongst many others.