A gas water heater will have a vent/exhaust pipe coming out of the top, this could be metal or pvc pipe. A gas water heater also will have a gas line entering it at the bottom of the tank. If you don't see these two things then it should be electric.