Yes, this should be possible using a Python add-on.
This page discusses several different Python libraries that can capture webcam pictures. If you are using Vizard 3 (which uses Python 2.4), it looks like you can also do this with the
VideoCapture and PIL libraries.