You can check the used compiler and the flags.
There are many downstream specific patch files in openssl RPM package of Fedora.
One Fedora downstream specific feature is the enviornment variable OPENSSL_FORCE_FIPS_MODE
to enable FIPS mode in non-FIPS environment. The feature is managed in this patch. According to this Bugzilla ticket, the environment variable may work with the openssl RPM package >= openssl-3.0.5-3.fc38 in Fedora 38.
In the non-FPS environment, you can see the result by the comand below.
You can test it by running a testing program https://github.com/junaruga/openssl-test - fips_mode.c
.