User Activity

Hi, I am really new on STM32 area. I have 6 devices which communicate in RS232 Level.I need to understand that which devices is communicating. In Arduino there is a if(Serial.available()) about it. In STM32 how can I do that. Thank you so much