BCGControlBar Pro for MFC
BOOL CBCGPRibbonBar::IsTouchMode ( ) const

whether the Ribbon bar touch mode is currently activated.