Machoke appears in Pokemon Diamond, Pearl and Platinum, where it is found on the routes and in caves as a wild encounter.
It is the middle stage of the Machop line, so you can also raise one by levelling a Machop, which is often the more reliable route since wild Machoke are not especially common.
The same family appears in most other main-series titles as well, including the remakes and later generations, so if you are playing something newer the availability may simply be different rather than absent.