Try something like this - it should return all the currently connected camera ids:
filters = new FilterInfoCollection(FilterCategory.VideoInputDevice);
if (filters.Count > 0)
{
for (int i = 0; i < filters.Count; i++)
{
System.Diagnostics.Debug.WriteLine(filters[i].MonikerString);
}
}