no, but there is…
What boroda says.
To add some additional thoughts on this:
You would need to add all lossless audio formats that you are using to such a virtual tag.
So you will then probably end up with something like:
$If($Or(<.Ext>=flac,<.Ext>=ape,<.Ext>=wav,<.Ext>=aiff,<.Ext>=alac,<.Ext>=tta),Lossless,Lossy)
But that still will not be a catch-all for lossless audio.
There are extensions such as .m4a and .wv that can contain both lossy or lossless audio.
So there is no perfect solution for this.
Except perhaps for adding bitrate to the equation.
Anything with a bitrate above 400k is likely to be lossless.
(but even that won't be true in 100% of all cases)