I’d suggest that you follow the steps mentioned below and check for issue resolution.
1. Switch off the computer.
2. Disconnect the AC adapter from the system.
3. Remove the battery from the computer.
4. Press and hold down the power button for 15 seconds.
5. Then connect back all the peripherals and check for issue resolution.
2 Beeps on Dell Inspiron n5010 indicates Memory or Memory slot failure. I would suggest you to remove and reseat the memory on the system to check if the beep codes disappear. If two or more memory modules are installed, remove the modules, then reinstall one module and restart the computer. If the computer starts normally, continue to install additional memory modules (one at a time) until you have identified a faulty module or reinstalled all modules without error.