Yes, Ledger can do all those things. No, it doesn't do this "out of the box".
I do most of these things. Simple, by adding meta-tags to my ledger. I'm just now working on consolidating on all my willy-nilly scripts and tools. And then plan to turn this into an actual "investment dashboard" ala ghostfolio but using the ledger as source.
In the end, a plain-text-ledger is just a of database. And the ledger query language (e.g. bean-query-language) a way to query it and produce reports.
So, what you are asking is more like "can SQLite categorize assets, give a breakdown of the exposure according to such cats per industry, region etc". Well, sure it can. But it's a bit of a strange question.