/Engine/Source/Developer/TextureCompressor/Public/TextureCompressorModule.h
If there is a choice to be had between two formats: one with alpha and one without, this returns which one the texture expects.
bool GetTextureExpectsAlphaInPixelFormat ( bool bInSourceMipsAlphaDetected ) const