can I use a 74HC595 shift register instead of 8 transistors?

Use interrupt from the diodes to know when to sample.