Ocean modifier source code
You can't find the source within the Blender installation because it's compiled code (C/C++). 

An probably older implementation: Blender_Ocean.c has pointers to the original paper by Jerry Tessendorf Simulating Ocean Water.

You find the current source file in GIT version control