If someone gets ants inside of a computer and can't get them out alive
and a repair shop is insufficiently capable of handling these, you can
ask if they will fix the computer IF they find dead ants inside it.
If that is not a problem, and only live ants are, then you can easily
snuff out those ants by putting the portable computer inside of an
air-tight plastic container (those storage ones could do OK) and
put it on something inert - or perhaps an ant attractant bait - outside
of the computer, yet inside of the plastic storage container. Choose
a transparent container, too; btw. There are synthetic derivatives of
natural insecticides available; see 'synthetic pyrethrin insecticides'...
http://www.wisegeek.com/what-are-some-natural-insecticides.htm
After doing a bit of reading to see which product brand is best for ants,
follow instructions carefully & spray some of this product (comes in
spray cans) on a piece of paper towel, folded up, so it is near but not
touching the portable computer which is inside the plastic storage box.
Then close the lid. This may take some time. (CO2 cartridges could
be used to purge air, but eggs may survive and hatch later.)
A gardener could set his or her computer inside a similar box, and get
that container of powered diazinon granules used for some flower pests
or a variety of insect lawn and garden invaders, and put this powdered
toxic product around the computer, inside the enclosed box. You could
also put some ant attractant inside the box, also; set so ants have to
track through the diazinon and then go back into the computer. This will
kill any insects inside the container, the computer, et all. But, a service
tech would probably not want to work on a computer whose pet ants
had packed this kind of insecticide into the computer. (I wouldn't do this.)
So, the idea with spray, on a paper towel next to the computer, inside
a clear plastic storage box, as earlier described, could be an OK idea.
An entomologist or botanist may find a simpler means to rid a computer
of insects, so long as the machine can be isolated from the environment
where the insects have been getting food and their original habitat zone.
To deprive insects breathable air long enough could also get rid if them;
but if eggs are inside, some bugs emerge very able to continue their line.
(My dad is a naturalist botanist and so I have ideas, including safer ones.)
I thought someone should at least add some direction to the question;
other than hoping bugs will die. {They will, eventually!} Even tower Macs
and other brands of computers, other kinds of electronics and also power
cables buried underground, can and have attracted insects, who nest there.
So, maybe those PC owners, who have the clear window on their towers,
and neon lights inside, have a good view of 'a bugs life' of their own?
Some upper-end outdoor gear shops sell 'bug net suits'... Do they also have ties?
Good luck & happy computing! 🙂
PS: electronics lose their allure to insects when the power is removed;
and while they're invested in living inside a computer, it may be too late
to see if removing the battery and AC power helps make them move out.
edited.