Is there any limit on number of devices i can use with power supply
Solution 1:
Honestly, odds are you are over-working your Power Supply, you can add a secondary power supply, they do make them for supporting Power Hungry video cards especially. If I had to guess you are also in a case without enough ventilation for your needs. I'd suggest getting a FULL ATX case, and at least a 650W PSU. You can do this for well under $200 at newegg. Also, it's best to give yourself about 25% headroom on your PSU, as running full bore will likely cause similar issues. The most I would suggest running on a 400W PSU is 6 drives, and that's ONLY IF you are running onboard video, and a reasonably light CPU and Chipset.
Solution 2:
The number of hard drives and CD writers that you can add really depends on what other components you have in your computer.
Of course, there is a limit on how many components will run off of a power supply. 400W is very standard and only really designed to cope with a couple of hard drives and a couple of opticals drives at best, if that.
You could use a free online tool such as this power supply calculator at newegg or outervision PSU calculator to get a rough estimation of how much power your computer would be drawing with everything plugged in. I would then advise that you replace your PSU (power supply unit) with a higher rated wattage. Of course, this tool is one of many and I would look around first before committing to buying anything.
Hard drives do tend to get very hot, to the point that they burn your fingers - this is pretty normal. Apart from the fact they are busy working away which heats them up, it is also due to lack of ventilation within the computer case as the case fans are not always right next to the hard drives to adequately cool them down.
Solution 3:
There is a limit - each item you connect will have its own power needs. However, the amount required (particularly for processors and graphics cards) will vary very widely depending on what you have, so there's no easy way of saying how much you need without much more specifics on the hardware involved. From personal experience, 400W is more than enough for most home users who only have one or two hard disks and CD drives. But a top graphics card or processor will devour that easily - many graphics cards recommend a minimum of 450W power supply on the PC. And the some quad-core intel chips can devour 300W by themselves at maximum load. A hard disk might take 15W, a CD drive possibly 25W. So already you've committed yourself to 145W without looking at the two most hungry components. Ditch at least 2 of the CD drives - 4 writers is excessive and I doubt will give you any boost over 2 because of other system bottlenecks.