If you mean an in-game hat, the Sniper simply does not have a default one in Team Fortress 2. But if you are asking about the real-world style his look is based on, it is essentially a blend between a slouch hat and an akubra — mostly a slouch hat. So there is no official in-game name, but that describes the headwear he is modeled after.