In a digital environment? Where run exactly as intended unless programmed not to? Computers can't mutate. They have no mechanism for it.
Software can mutate if it's part of what it does.
http://en.wikipedia.org/wiki/Evolutionary_algorithmUsually, evolutionary algorithms are applied by a program to find some optimized solution to a problem. Applying evolutionary algorithm to a program itself just requires that the program has a possibility to
a) reproduction
b) mutations and
c) selective process based on the success of each program in performing its task.
Reproduction can be either asexual or sexual process. Asexual reproduction means the program just copies itself over and over, while each copy may or may not get minute mutations to its code, and the mutated copies are then evaluated for their capability, and if deemed capable of performing their task, they are allowed to reproduce further, if not (a lethal mutation), that line "dies". Sexual reproduction is a much more optimized evolutionary algorithm, since it not only measures both the capability to perform the given task, but also its efficiency - the best programs would swap parts of their codome, resulting in faster and further optimization of the program routines.
Hell, you can even evolve simple programs out of scratch as long as you give the required building blocks and define the task that you want done.
For further information, watch this educational video:
Blind Clockmaker 