Working method
Open the audio stream properties in a media inspector and find Codec or Format, channel count and sample rate. For AAC, account for lossy encoding. For ALAC, inspect decoded PCM when exact correspondence with a source matters.
Checking the result
High bitrate or a renamed extension cannot establish the quality of the source. A correctly identified ALAC file may itself have originated from MP3. Compare with a known original when provenance matters.
After extracting a soundtrack from video, inspect the stream format the same way.