If the uint32 being read from the binary file is, in fact, a uint32 then it's not in any format aside from being interpreted as an unsigned 32-bit integer. In that case, you read in the number then convert it to a hexadecimal representation.
So for example:
std::ifstream ifs("file.dat", ios_base::binary);
char buffer[64];
uint32_t n;
ifs.read(buffer, sizeof(uint32_t));
memcpy(&n, buffer, sizeof(uint32_t));
std::cout << std::hex << n << endl;
There's more than one way to skin a cat here. You can read it directly:
uint32_t n = 0xABC123;
// Get string representation of n
std::stringstream ss;
ss << std::hex << n;
// Pull out string, copy ptr to char array if you like
std::string s = ss.str();
// s.c_str() for example, for the C style string
std::cout << s << std::endl;
I hope that answers the question, if it's reading the uint32_t as 4 bytes then displaying or saving the char* string hexadecimal representation.