Applications typically don't see the header. Thats handled by the OS.

However, you can use libpcap to get such information portably.