I don't think there is a Vanilla way to check if a player is looking at a specific client-side block, so this might not be possible. Because the block is client-side, that means the server (probably) cant see them. They can only be placed by the server, not checked.