Well, cohomology is the study of a particular subset of the set of functions on a space, so anything you can get from cohomology is a thing you get from studying the space. This includes defining the cup product, which turns the cohomology module into a graded ring (the cohomology ring).
But perhaps (fairly) this seems very abstract compared to your question. So let's talk about a very concrete question: How do I determine whether two given topological spaces are homeomorphic? (Variants are "... are isometric" and "... are diffeomorphic".) In the area I study (3 manifolds), this is a difficult question.
(There are other questions one could ask about a space. I am confident that the study of the functions definable on the space reveals information relevant to answering those questions. Rather than try to vaguely encompass the range of such questions and revealed information, I am only going to focus on one question and, close to the end of my discussion, will restrict the scope a little further.)
Let us look into the study of functions on 2-manifolds (because it is usually easier to sketch examples and visualize what is going on). A simple 2-manifold is the disk. There are very few obstructions to just putting any function you like on the disk. But now let's make a quotient, identifying two segments on the boundary of the disk -- this makes our space homeomorphic to a finite cylinder (also to an annulus). We have just acquired a boundary condition: the function values along those two segments have to agree (otherwise our "function" violates the vertical line test on the identified segments).
If one imagines an ant walking on the graph of the function along a straight line in the disk through a point in one segment and its identified point in the other segment (I'm using the metric properties of the embedding of the disk in $\Bbb{R}^2$ to define this path -- but that this path exists should be clear from the homeomorphisms with the cylinder or annulus, above.) any function on the disk with identification is periodic on that path. There were paths that did this on the disk -- any closed loop does this. But any closed loop on the disk can be contracted to a point. Once the ant realizes it has arrived at a point it has visited previously on the loop, it can deflect slightly, keeping one hand (tarsus?) on the previously visited points and slowly spiralling in to a point. This doesn't work on our disk with identified segments -- which is perhaps easier to see on the finite cylinder or the annulus -- eventually the ant shrinks the loop down until it runs along one of the boundary components and it can shrink no further. If the ant tries to shrink on the other side of the original loop, it is obstructed by the other boundary component.
So forced periodicity in the set of functions definable on the quotient space has signalled that our space is not the disk: it's fundamental group has at least one nonidentity element. Perhaps it is or isn't clear from the name, but the fundamental group is an important property of a topological space. It is a homeomorphism invariant, meaning that all the images of a space under various homeomorphisms have the same fundamental group. In (geodesically complete) hyperbolic 3-manifolds, the fundamental group is a complete classifying invariant. So two hyperbolic 3-manifolds are homeomorphic if and only if their fundamental groups are isomorphic. (This is not true for non-hyperbolic 3-manifolds. For instance, there are pairs of nonhomeomorphic lens spaces with isomorphic fundamental groups. In some sense, lens spaces are too simple/symmetric to have unique fundamental groups.)
Summing this up: the collection of functions defined on a 3-manifold gives us information about its fundamental group. For hyperbolic 3-manifolds (which are "most" 3-manifolds) this information completely specifies which homeomorphism class the space represents.