> Could the same be done with government?
I don't think so, just because the goods it provides are so numerous and muddled.
Take one example: the fact that if I sign a contract I will feel legally obligated to follow through on it. This provides tremendous social good (billions of dollars worth), but it's very hard to quantify exactly how much.
Then you have to figure out how much it costs to provide that good. Should you include the total cost of government? No, probably not, because that includes lots of other goods. But the direct cost of say the courts isn't enough because they can only function thanks to the explicit backing of law enforcement and the implicit backing of the military.
It might be useful to start with a comparative analysis for governments though. It's probably impossible to delineate and assess every good the government provides, but you can compare the cost of governance and standard of living between countries.
In such an analysis, I highly doubt the US comes out well. Personally, I am 99% sure that my donations to the Against Malaria Foundation provide more total social good per dollar than my taxes.