On the command line use ffprobe -show_frames input_file
. you can parse this input to get the frame type information.
You can also do
ffprobe -show_frames inputfile | grep pict_type
The string to grep may vary depending on version of ffprobe you have.