By spawn, you mean get generated during world gen in vanilla oceans and beaches? I'm not promising anything, but if I would look into it, would you want:
1. For trees not to spawn at all in those biomes, or
2. For those biomes not to get generated, or
3. It doesn't matter how, just obliterate...