Questions like these are central to John H. Conway's book The sensual (quadratic) form, which I've never seen because the Cabot library copy is checked out and the Birkhoff copy has gone missing. The following is taken from the MATHSCINET review (I changed the text slightly so that it makes sense):
Chapterbegins by posing Mark Kac's question of ``hearing the shape of a drum'', and the author relates the higher-dimensional analogue of this idea on tori--quotients of
by a lattice--to the question of what properties of a positive definite integral quadratic form are determined by the numbers the form represents. A property of such a form is called ``audible'' if the property is determined by these numbers, or equivalently, by the theta function of the quadratic form. As examples, he shows that the determinant of the form and the theta function of the dual form are audible. He also provides counterexamples to the higher-dimensional Kac question, the first of which were found by J. Milnor...