Homebrew always seems to install them at /opt/homebrew/opt
You can verify this if you open finder, press Command+Shift+G
and type in /opt/homebrew/opt
I'd typically place this location in my .zshrc
file like this:
export JAVA_HOME="opt/homebrew/opt/openjdk<@version-here>"