I highly recommend you learn how to use the command line and also review the actual Homebrew documentation & website. The answers are all there. Homebrew is not a traditional app that is easy to use. A user needs to really understand Homebrew before using it. Homebrew has been known to break macOS for some people and the fixes involve using the command line.
For an answer to your question:
https://docs.brew.sh/FAQ#why-is-the-default-installation-prefix-opthomebrew-on-apple-silicon
You can also use the command (replace "<name-of-utility>" with the actual name of the Homebrew item you are trying to locate):
brew info <name-of-utility>
I hope you have a good backup as you may need it when using Homebrew. You should have frequent & regular backups anyway.