Products that contain borate are effective against wood-boring beetles because they penetrate wood, killing the larvae. They also linger to prevent another infestation. Ask your local hardware store where to find them.