This is how I would do it:
1. Get
Logiqx's DatUtil, transform a MAME XML into tab-delimited text keeping details (-k), load in a spreadsheet, and discover which column has the driver status. IIRC it is the first data column in the game_driver rows (so you just need those rows). Sort accordingly, remove the crap, leave the list.
Or:
2. Go to
MAWS, select Browse, select by "driver status", select imperfect or preliminary, and copy the list from your browser.
Note that "non-working" games is a loose definition which varies from game to game. Some games marked as non-working can be played, and some games marked as "imperfect" are unplayable.