So, I think as defined by the Open Source Initiative, what you're trying to do is explicitly not open source. The open source definition includes:
1. Free Redistribution
The license shall not restrict any party from selling or giving away the software as a component of an aggregate
software distribution containing programs from several different
sources. The license shall not require a royalty or other fee for such
sale.
Rationale: By constraining the license to require free redistribution,
we eliminate the temptation for licensors to throw away many long-term
gains to make short-term gains. If we didn't do this, there would be
lots of pressure for cooperators to defect.
I don't know of a common open source license that restricts resale of the software. This is not to say that I think what you're trying to do is bad, I'm just not sure it's considered open source. I think I remember seeing the term "shared-source" used to describe something like what you're going for.
Anyway, I don't know of a generally available license that meets your needs, but what you could do is find some sample licenses of other software products that restrict their usage, and hack together your own license. What comes to my mind is something like the Microsoft Office Student edition license (pdf download), which already limits the use of the software and just change the limitations to meet your needs.
If you find several different software licenses that each restrict usage, you can probably get a sense of the important / common themes from them and create a license that works for your project.