is that a command to type in terminal that lists all the webcams connected to my computer? Maybe using ffmpeg package?
system_profiler Will enumerate connected USB and other devices should you have a FireWire or other bus for a camera.
Sadly, ffmpeg won't see the path to these devices as described here:
At least you'll have a starting point with the two commands to detect a connedtd device.