I heard there are some alcohols that are prohibited to be used when cleaning a computer or an electric device.
Apart from beverages, which ones are these?
You would want to use as clean alcohol as you can get hold of. It doesn't really matter if it is ethanol,
methanol or isopropanol.
As mentioned in the comments low content alcohols may contain additives that will be left behind as impurities. Antisepctics and such are not suitable at all.
A nice test is to wipe some of the alcohol on a glass plate. Once the alcohol vaporizes you should see none or almost none impurities left behind. If there is oil present you will get that oily "rainbow" effect.
Several users have posted safety concerns on methanol, so don't use that. But: all of these are strong chemicals and should be treated as such. Use gloves, work in a ventilated area, and perhaps stating the obvious: They are all extremely flammable.
The ''official'' cleaning solvent for electronics is IPA, isopropanol. At 70% is usually diluted in water (and in fact it has the best disinfecting power at that concentration, useful to know these days!). 99% is technical grade and above is probably only useful for doing chemistry.
For various reason it is almost always denaturated with something else, but that shouldn't give issues. The most important thing, as already commented, is that it shouldn't leave residues.
Common ethanol is also suitable for most purposed, and it's almost always denaturated too (otherwise people would drink it).