Search for "stop test" on this board.. you should find what your looking for. Its basically something like with the key in the second position, fully depress the gas pedal 5 times quickly, then read the codes that come up.... I hear its tricky to get the right timing on the gas presses.
also check out www.bmwe34.net