I would like to find out if the user\'s device has an attached camera and microphone, and if so, has permissions been granted to get the audio and video stream using Javascr
You can use the MediaStreamTrack which represent a media stream, then you can use its getSources method as explained here: html5rocks
If you don't get any media sources then your client hasn't a webcam. It's not supported by firefox.