There are 7! positions the corner cubies could be in, and 3^7 possible orientations. So the total number of permutations of the cubies of a 2x2 is 5040*2187.
There are two ways to count. If you fix a corner, ther are 7! permutations and 3^6 orientations, so you get 3674160 positions. Or you do not fix one corner - I use this approach for my computation since you have more symmetries - you have 8! permuations and 3^7 orientations and you get 88179840, which is 24 times larger and corresponds to the 24 possible orientations o a cube in space.
I tried a correct computation myself but I also see some possibility that I did something wrong. Here is my approach:
Let use the abbreviation L_U if
exactly the layer U is correct and L_UF if
exactly the layers U and F are correct for example. Then there are the following distinct cases:
L_URFDLB: all layers are solved, 1 case
L_UD, L_RL, L_FB: exactly two opposite layers solved, 3 cases
L_UR, L_UF, L_UL, L_UB, L_RF, L_RD, L_RB, L_FD, L_FL, L_DL, L_DB, L_LB: exactly two adjacent layers solved, 12 cases
L_U, L_R, L_F, L_D, L_L, L_B: exactly one layer solved, 6 cases
L_URFDLB: The positions are determined by the URF corner which are 24 different positions.
L_UD: The 24 positions of the URF corner define the solved U-layer. For some specific solved U layer there are 3 different possibilites for a solved D layer (not 4, one case results in L_URFDLB ). So L_UD has 24*3 positions.
L_UR: The 24 positions of the URF corner define the solved U-layer and the solved R layer. For some specific solved U and R layer there are 5 possible positions for the yet undetermined DLF and DLB corners (not 6, one case results in L_URFDLB). So L_UR has 24*5 positions.
L_U: The 24 positions of the URF corner define the solved U-layer. The 4 yet undetermined corners of the D layer have 4!*3^3 = 648 possibilities for each specific U layer. But since the 24*648 possibilites include also the cases L_UD and L_UR, L_UF, L_UL, L_UB and L_URFDLB we have to subtract 24*3 and 4 times 24*5 and 24*1 and we get 24*(648-3-4*5-1) = 24*624 different positions.
Now the total number of positions with at least one solved layer should be
N(L_URFDLB)+ 3*N(L_UD)+12*N(L_UR)+ 6*N(L_U)= 24+3*24*3+12*24*5+6*(24*624) = 91536
So the probability is 91536/88179840 = 1907/1837080 which is slightly less than 1/945
The probability for exactly one solved layer is btw.
6*N(L_U)/88179840=26/25515