Revealing the electronic structure of a carbon nanotube carrying a supercurrent