Default Backup up the enabled/disabled state of receivers and services?

There are plenty of apps that offer the ability to disable and re-enable services and receivers of other apps, and I know it's possible to do this via command line through the package manager, but is there any way to make a backup of the state (whether a particular component is enabled or disabled) of the receivers and services of an app? Is there an xml file somewhere or something that keeps track of these states for each app?