Ocean modifier and foam data export?
Finish settings for ocean such as wind, choppiness, etc.

Set resolution in ocean modifier. For example, 16 will result in a baked image 256x256 pixels. 64 is the largest, final baked image is 4096x4096.

Check the boxes for generate normals and Foam,

Set cache path anywhere you want (should be an empty folder) and bake.

After a while you get images like this one in your cache folder: