I think you have to first isolate the bacteria from the sample, and then you will get different isolates of bacteria and then you can check them are those bacteria biofilm forming or not using different techniques such as congo red assay, EPS estimation, etc.