If you have signed it with Android Studio, you can read this.
If its an app you've already published you can get its signature fingerprint from your Google Play Console as given by me in an earlier separate answer.
If its someone else's apk, you might want to ask them for those singing fingerprints for SHA1, SHA256 and MD5. There is no other way of retrieving the signing keys.
How Google Play App Singing works
You digitally sign each release using your upload key before
publishing it to a track in the Play Console.
Google Play uses the upload certificate to verify your identity and then re-signs your release using the app signing key for distribution.
Each Android device checks the release’s app signing certificate matches the
certificate of the installed app before updating it.
More about app signing here.