There is not an ordinance that directly deals with a property owner's rights in this situation. It is recommended that the property owners try to work out a mutually beneficial solution between them. Normally a drainage swale can be created on the property between the homes to direct the drainage to the street or backyard and away from structures.
If a solution cannot be worked out to the satisfaction of the property owners, and one property owner feels that they are being damaged by the other property owner, it is a civil matter, which may require appropriate legal counsel to resolve the matter.