I have received some comments on getting total space of table and all indexes, so I rewrote an old query to return total space used, space used by heap table or clustered index and space used by non-clustered indexes.
Instructions: Run this query, result ret is sorted by name. If you need result sorted by space, simply change order by clause.