If you go back a year you can get some detail into what HM Revenue and Customs spends it's money on (90% of it is under the title 'social protection' which is child welfare and tax credits). The collection and enforcement looks like it costs 4 billion at most.