Some players (e.g. Foobar2000, Windows Media Player) offer the possibility of managing UPnP media servers and renderers.

If that seems interesting, I coded QtUPnP.
QtUPnP is C++ framework, based on QT5, to build easily an UPnP control point. It focuses on the UPnP/AV standards.

For more details and code sources

The framework has been tested on Windows and Linux Kubuntu and Ubuntu.

Bon courage at all.