I found a gist that mentions being tested against unity 2021, I haven’t tried it yet, but it might be information in the right direction for getting textures export from the editor for inspection.
Unity also has the crunch code available in a fork on GitHub, but I’m not sure what’s needed to compile a tool out of it.