How to toggle between DX10, DX11, DX12 and via Blueprint?

It does not change the DefaultEngine.Ini in the project, but changes the per user config in Saved\Config\Windows\Engine.ini under the same config section. You will need to restart your game for the change to happen.

DefaultGraphicsRHI specifies the rendering system to use, either RHI_DX11 ,12 or vulcan