The player profile is typically stored within a file named generically (e.g., savegame.dat or inside a numbered folder). The gender flag is a byte or bit switch early in the file structure.
For the uninitiated, a save game file contains all your progress. In TDU 2, this includes: