If your external keyboard is hardwired to use QWERTZ, it won't be affected by the keyboard layout choosen in the OS. In other words, the computer doesn't need to switch between layouts; it only needs to read the output coming from the keyboard.
For example one of the keyboards I use is Dvorak. No matter what layout I choose in OS X/Windows, the keyboard will always output in the Dvorak layout.