what you probably mean is h264 as opposed to OpenH264, and "after establishing a peer connection" rather than "after creating peer connection"
Operating under that interpretation:
create a peer connection object,
create an offer from it,
see if the offer has an H264 codec.