v4l2-ctl --device /dev/video0 --list-formats-ext
Note that v4l2-ctl command is provided by package v4l-utils
v4l2-ctl
v4l-utils