I haven't seen a programming language with native support for this in its standard library, but Unicode does publish a file containing ligature decompositions (including Œ and Æ) at https://www.unicode.org/Public/UCA/latest/decomps.txt