In the Hangar — though strictly speaking you are not upgrading a hull there, you are buying a different one and outfitting it.
The hangar is where you switch ships and where equipment like lasers, shields and drones gets fitted. So the two-part answer is: new hull from the hangar, better performance from the equipment you mount on it.