How do I get rid of bugs in rice?
If you can, put all grains you buy in impenetrable containers as soon as you get them home, and freeze them. Keeping rice (or any other grain) in the freezer for a full day will help. Keeping the grain in the freezer for a week will kill just about any creepy crawly that's already in the rice, the impenetrable container will keep new visitors out. Glass or hard plastic containers (like tupperware) are impenetrable, Ziploc style bags may not be. 

If you don't have room in the freezer for all of a new rice purchase, go ahead and repackage it in the impenetrable containers, and rotate the containers until they have all had at least a full day in the freezer (a week is better).

Get rid of anything that already seems like a breeding ground. Thoroughly go through all of your food storage space, get rid of anything infested, put all you can save into impenetrable containers, and consider a (hopefully) one time use of a pesticide.

Also, the cooler you can keep the stuff that the bugs like, the better. Bugs that are well fed and warm are happy, happy bugs.

One more thing. I don't know if it actually works, but it can't hurt: Try putting a few bay leaves in each container of rice. It's a bit folklore-ish, but the countermeasure has been touted for decades, maybe longer. 

I assume you soak the rice before cooking and get rid of anything that floats?