If I read the in the commit mentioned flyspray entry and the diff correctly, it comes with a wps tag you can use...
"ik" for the current track's disknumber,
"Ik" for the next track's disknumber (as usual).
Though I haven't tried because I don't use a disknumber tag anywhere. If I knew that it works, I would update the CustomWPS wiki page.