Assuming I understand what you are looking for, I believe the closest you are going to get is the API set entitled ethernet bypass. It is a set of APIs that allow you to sit between the ethernet driver and the TCP/IP stack. So I believe you are getting packets before the tcp/ip headers are removed.
ethernet bypass is described in the API reference guide. There is also an ethernet bypass example application for you to look at.