You cannot do it using standard user mode APIs. You need to either hook APIs or create virtual devices to accept application streams/sessions.
- Intercepting and postprocessing all audio streams on Windows
- Recording Audio Output from a Specific Program on Windows
- Is it possible to caputre the rendering audio session from another process?
- Capture audio of a single application on Windows 7