There is no right way to see if player in cqc from game journals. But I can suggest a few indirect ways:
LoadGame event without Ship field happening on enter in cqc from main menu (can be used to detect enter in cqc)
Music event with "MusicTrack":"MainMenu" happening when exit from cqc to main menu (can be used to detect exit from cqc)