Apple has clarified and shared more details on its new Lossless and Spatial Audio offerings. You can enable Lossless with any pair of headphones, but it will not work over Bluetooth, so none of the AirPods will support the feature. Even the AirPods Max with its Lightning-to-3.5mm connector for wired use won't get the Lossless option. You'll need wired headphones to get the better sound quality option. And for the even higher Apple Music Hi Res Lossless, you'll need an external DAC to get it to work.
As for Spatial Audio, the AirPods will get support for the feature; the same goes for Beats models with Apple's H1 or W1 chip. If you're wondering about the HomePod or HomePod mini, these won't get the Lossless feature either. Spatial Audio will be coming to the HomePod, but we don't know if the HomePod mini will get it. Compatible Mac machines will get Spatial Audio as well.