We recently landed nsIUDPSocket, a UDP socket component, usable from add-ons, which allows you to implement your own network discovery system, like SSDP. Bug 869869 has some of the details of the landing and nsIUDPSocket can be found here:
http://mxr.mozilla.org/mozilla-central/source/netwerk/base/public/nsIUDPSocket.idl