While the "app usage" report can give you some clue, I'd recommend using the Microsoft 365 Active users report instead (getOffice365ActiveUserDetail), which gives you the "last activity date" per workload. Keep in mind that all reports show data with some delay, so it's not exactly current, but for your purpose, it should do.
Alternatively, you can crawl the Unified audit log entries to determine "last activity date" per user per workload, but that's a lot of overhead compared to leveraging the built-in reports. Still, it's the only way to get proper data for workloads for which we do not have matching Graph API endpoints just yet.