Probing the energy bands of a Bose-Einstein condensate in an optical lattice