I don't imagine this information is readily available due to data protection as opposed to anything sinister as has been suggested to me today.
Conversation went like this
A - you would be shocked if you knew the ages of people in hospital in Scotland with covid
Me- really, where do I find that information?
A - oh you can't, apparently it's being covered up so people don't panic
Me 
I hate bullshit like this based on nods winks and rumours but it's made me wonder if this is ever published anywhere even retrospectively?
I should add this person is not a reliable source, it was very much 'this person who knows my neighbours sons brother is high up in xyz'
It has made me curious about the actual state of affairs, it was a stat that hasn't crossed my mind before.