I've kind of fixed this, at least enough for my purposes. I can pull out a single line from the "totals" block in the basket using the following code:
echo $this->renderTotal($totals['discount']);
This line can either be displayed on its own, or data can be extracted from it.