I think, there is no universal way for both players, but at least for WinAmp there must be some way, because some time ago I saw a plugin which writes the currently played song to the mIRC client and also lot of other plugins for WinAmp displays the song info. But this is an issue for the WinAmp Plugin SDK, how it is with WMP, don't know... Good luck!