hisan 12 Light Poster

I need to get the info available devices in my LAN network.
My logic is as follows:
1.Send a UDP packet/s to the IP 255.255.255.255 and wait for the response from the available devices, once the devices repond back need to analyze the response..

Please help me out in implementing this
OR
let me know different ways in achieving my goal