Well, first you need to have a clear storyline in mind. Think about the characters, their personalities, and the conflicts they might face. Then, start sketching out the frames and poses of the horses and their interactions.
I don't know of any specific books that have such stories. There are many books about teachers, and about lesbian relationships, but combining them in this specific way is not something that is commonly found in mainstream literature.